package com.fs.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 抢单池对象 orders_seize
 * 
 * @author mumu
 * @date 2024-10-22
 */
public class OrdersSeize extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @JsonSerialize(using = ToStringSerializer.class)
    /** 订单id */
    private Long id;

    /** 城市编码 */
    private String cityCode;

    /** 序号 */
    private Long serveTypeId;

    /** 服务类型 */
    @Excel(name = "服务类型")
    private String serveItemName;

    /** 关键词 */
    @Excel(name = "关键词")
    private String serveTypeName;

    /** 序号 */
    @Excel(name = "序号")
    private Long serveItemId;

    /** 服务地址 */
    @Excel(name = "服务地址")
    private String serveAddress;

    /** 服务项目图片 */
    private String serveItemImg;

    /** 订单总金额 */
    private BigDecimal ordersAmount;

    /** 预约时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serveStartTime;

    /** 订单支付成功时间，用于计算是否进入派单 */
    private Date paySuccessTime;

    /** 经度 */
    private BigDecimal lon;

    /** 纬度 */
    private BigDecimal lat;

    /** 服务数量 */
    @Excel(name = "服务数量")
    private Long purNum;

    /** 抢单是否超时 */
    private Long isTimeOut;

    /** 抢单列表排序字段 */
    private Long sortBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setServeTypeId(Long serveTypeId) 
    {
        this.serveTypeId = serveTypeId;
    }

    public Long getServeTypeId() 
    {
        return serveTypeId;
    }
    public void setServeItemName(String serveItemName) 
    {
        this.serveItemName = serveItemName;
    }

    public String getServeItemName() 
    {
        return serveItemName;
    }
    public void setServeTypeName(String serveTypeName) 
    {
        this.serveTypeName = serveTypeName;
    }

    public String getServeTypeName() 
    {
        return serveTypeName;
    }
    public void setServeItemId(Long serveItemId) 
    {
        this.serveItemId = serveItemId;
    }

    public Long getServeItemId() 
    {
        return serveItemId;
    }
    public void setServeAddress(String serveAddress) 
    {
        this.serveAddress = serveAddress;
    }

    public String getServeAddress() 
    {
        return serveAddress;
    }
    public void setServeItemImg(String serveItemImg) 
    {
        this.serveItemImg = serveItemImg;
    }

    public String getServeItemImg() 
    {
        return serveItemImg;
    }
    public void setOrdersAmount(BigDecimal ordersAmount) 
    {
        this.ordersAmount = ordersAmount;
    }

    public BigDecimal getOrdersAmount() 
    {
        return ordersAmount;
    }
    public void setServeStartTime(Date serveStartTime) 
    {
        this.serveStartTime = serveStartTime;
    }

    public Date getServeStartTime() 
    {
        return serveStartTime;
    }
    public void setPaySuccessTime(Date paySuccessTime) 
    {
        this.paySuccessTime = paySuccessTime;
    }

    public Date getPaySuccessTime() 
    {
        return paySuccessTime;
    }
    public void setLon(BigDecimal lon) 
    {
        this.lon = lon;
    }

    public BigDecimal getLon() 
    {
        return lon;
    }
    public void setLat(BigDecimal lat) 
    {
        this.lat = lat;
    }

    public BigDecimal getLat() 
    {
        return lat;
    }
    public void setPurNum(Long purNum) 
    {
        this.purNum = purNum;
    }

    public Long getPurNum() 
    {
        return purNum;
    }
    public void setIsTimeOut(Long isTimeOut) 
    {
        this.isTimeOut = isTimeOut;
    }

    public Long getIsTimeOut() 
    {
        return isTimeOut;
    }
    public void setSortBy(Long sortBy) 
    {
        this.sortBy = sortBy;
    }

    public Long getSortBy() 
    {
        return sortBy;
    }

    public OrdersSeize() {
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cityCode", getCityCode())
            .append("serveTypeId", getServeTypeId())
            .append("serveItemName", getServeItemName())
            .append("serveTypeName", getServeTypeName())
            .append("serveItemId", getServeItemId())
            .append("serveAddress", getServeAddress())
            .append("serveItemImg", getServeItemImg())
            .append("ordersAmount", getOrdersAmount())
            .append("serveStartTime", getServeStartTime())
            .append("paySuccessTime", getPaySuccessTime())
            .append("lon", getLon())
            .append("lat", getLat())
            .append("purNum", getPurNum())
            .append("isTimeOut", getIsTimeOut())
            .append("sortBy", getSortBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
